<?php
/**
 * Created by PhpStorm.
 * User: wangwenfan
 * Date: 16-11-2
 * Time: 下午6:07
 */

namespace Common\Model;
use Think\Model;

class GoalsModel extends Model
{
    protected $_validate = [
        ['gname', 'require', '门型名称必须填写！'],
        ['remark', 'require', '备注必须填写！'],
        ['gname','','门型名称已经存在！',0,'unique',1],
    ];
    protected $_auto=[
        ['create_at','time',1,'function'],
    ];
}